#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
配置文件
管理应用程序的所有配置参数
"""

import os
from PySide6.QtGui import QColor


class Config:
    """应用程序配置类"""
    
    # 窗口配置
    WINDOW_TITLE = "VideoStitcher 视频拼接工具"
    WINDOW_WIDTH = 1200
    WINDOW_HEIGHT = 800
    WINDOW_X = 100
    WINDOW_Y = 100
    
    # 视频预览区域配置
    PREVIEW_GROUP_TITLE = "视频预览"
    PREVIEW_LABEL_DEFAULT_TEXT = "请选择视频文件"
    PREVIEW_LABEL_MIN_WIDTH = 800
    PREVIEW_LABEL_MIN_HEIGHT = 450
    PREVIEW_LABEL_STYLE = "background-color: black; color: white;"
    
    # 控制面板配置
    CONTROL_GROUP_TITLE = "播放控制"
    
    # 时间轴区域配置
    TIMELINE_GROUP_TITLE = "时间轴"
    TIME_LABEL_INITIAL_TEXT = "00:00:00 / 00:00:00"
    
    # 标记模式区域配置
    MARK_MODE_GROUP_TITLE = "标记模式"
    KEEP_MODE_TEXT = "保留模式"
    DELETE_MODE_TEXT = "删除模式"
    
    # 片段列表区域配置
    SEGMENT_GROUP_TITLE = "已标记片段"
    SEGMENT_LIST_DEFAULT_TEXT = "暂无标记片段"
    
    # 按钮文本配置
    IMPORT_BUTTON_TEXT = "导入视频"
    PLAY_BUTTON_TEXT = "播放"
    PAUSE_BUTTON_TEXT = "暂停"
    SKIP_TO_START_TEXT = "|<<"
    STEP_BACKWARD_TEXT = "<"
    STEP_FORWARD_TEXT = ">"
    SKIP_TO_END_TEXT = ">>|"
    MARK_IN_BUTTON_TEXT = "标记入点 (I)"
    MARK_OUT_BUTTON_TEXT = "标记出点 (O)"
    EXPORT_BUTTON_TEXT = "导出视频"
    DELETE_SEGMENT_BUTTON_TEXT = "删除选中片段"
    CLEAR_SEGMENTS_BUTTON_TEXT = "清空所有片段"
    
    # 文件对话框配置
    FILE_DIALOG_TITLE = "选择视频文件"
    FILE_DIALOG_FILTER = "视频文件 (*.mp4 *.avi *.mov *.mkv *.flv *.wmv *.webm)"
    
    # 消息框配置
    SUCCESS_TITLE = "成功"
    SUCCESS_IMPORT_MESSAGE = "视频导入成功！"
    ERROR_TITLE = "错误"
    
    # 颜色配置
    KEEP_SEGMENT_COLOR = QColor(144, 238, 144)  # 浅绿色
    DELETE_SEGMENT_COLOR = QColor(255, 182, 193)  # 浅红色